package com.school.view;

import java.util.Scanner;

public class MainView {

    public void start() {
        Scanner scanner = new Scanner(System.in);
        while (true) {
            System.out.println("        欢迎来到校园管理系统        ");
            System.out.println("--------------------------------");
            System.out.println("1.学生登录\t2.教师登录\t3.管理员登录\t4.退出");
            int chose = scanner.nextInt();
            switch (chose){
                case 1:
                    StudentView studentView = new StudentView();
                    studentView.studentView();
                    break;
                case 2:
                    TeacherView teacherView = new TeacherView();
                    teacherView.teacherView();
                    break;
                case 3:
                    AdminView adminView = new AdminView();
                    adminView.adminView();
                    break;
                case 4:
                    scanner.close();
                    return;
            }
        }
    }
}
